const KEY = 'city-token'
const ONEKey = 'oneCity-token'

export const setToken = (data) => {
  localStorage.setItem(KEY, JSON.stringify(data))
}

export const getToken = () => {
  return localStorage.getItem(KEY)
}

export const removeToken = () => {
  localStorage.removeItem(KEY)
}

export const setOneToken = (data) => {
  localStorage.setItem(ONEKey, JSON.stringify(data))
}

export const getOneToken = () => {
  return localStorage.getItem(ONEKey)
}

export const removeOneToken = () => {
  localStorage.removeItem(ONEKey)
}
